https://support.hp.com/rs-en/document/c04800261
According to the spec, it comes with a 180W PSU........
So its not designed for users to swap in another newer GPU even theres a PCI-E slot on ur motherboard.
For low profile cards like the GT1030, the chance of u getting it to run is still quite slim.