Ok so it is a 6 year old HP with a first gen core i7m (dual core with 4 threads), and Nvidia Quadro 5100.
So first of all this laptop was never designed to be a gaming laptop, its a professional laptop for engineering applications that can use GPU for non-gaming tasks.
You cant change an integrated GPU to a dedicated one, just think about the literal definition of the word INTEGRATED.
I have not even bothered looking for schematics because IF the dedicated GPU is even removable, there is nothing in its generation that is going to be any noticeable amount of a step-up for gaming.
As I stated the GPUs in laptops are not standardized at all. So the way HP designed the graphics chip to connect to motherboard in 2017 can be completely different from how they did it last year, and you certainly cant take a GPU from another OEM (lets say Dell) of any year and put it in your HP.
Bottom line, if you want parts upgradeability then you need a desktop.
A laptop is only for when portability outweighs all the drawbacks.