nope, they are all ATX, but HP are known to have weird pin connections on their motherboards preventing any upgrade for a PSU.
In order to upgrade your GPU, you'll need to upgrade the motherboard and PSU also, HP are bad like this. I can confirm that the PSU will fit and am happy to recommend a motherboard that'll work, as long as you will go with it.