The Power Supply will be limiting. If it's a standard PSU, then just upgrade it and use any graphics card you want. Looks like it's not, though. I would suggest sticking to something that can get it's power from the board. Perhaps a 1650.
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".