On Page 10, Chapter 2, you will find a list of compatible video cards. Which card you can use depends on the wattage of the power supply unit (PSU) that is installed. You had the option of 180W, 250W or 310W.
The GTX 1050 Ti requires a PSU with a minimum of 300W. Therefore, even if it would fit, it wouldn't work with any of the PSU's I listed.
Please click the Thumbs up + button if I have helped you and click Accept as Solution if your problem is solved.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".