It's all about the power supply. I see some specs that say your model has a 330W power supply, is this true? Look at the label on the power supply itself, inside the computer, if you don't know. If you do have one, a GTX 1050 Ti is the way to go. If you have one of those 180W power supplies, a GT 1030 is about the best you can do. Even a 1030 would be far better than a 745.