Can’t find any concrete specs on that model. Seems to be one of HP’s CTO (customize to order) models which can have a variety of different specs. But everything I’m finding online says it’s a budget model.
The time period the model was released (2012) was right around the time laptop processors switched from socketed to soldered. So I’d say it’s closer to a 50% chance you can upgrade the CPU. The fact that it’s CTO makes it more likely it’s socketed. Knowing the exact CPU model number might help, but.some of the CPU models around then came in both socketed and soldered versions. So the only way to know for sure is to open up the laptop and physically inspect the CPU.
Even if it’s socketed, the CPUs around that time (Westmere, Sandy Bridge) tended to run hot. So even if you can swap processors, the laptop may not be able to keep a more powerful CPU cool. So your upgrade options may be heat-limited to lower-end CPUs not much faster than the one you’ve got.
Regardless of whether or not the CPU can be upgraded, the best performance improvement you can get on these budget laptops is to replace the HDD with a SSD. Even if this laptop only supports SATA 2, the speed improvement should still be worth it.
The exception is if you’re experiencing slowness due to lack of RAM. Can you describe exactly what sorts of things you’re doing with the laptop that’s causing you to feel it’s slow? That would help us tell if it’s worth trying to upgrade this laptop, or if you’re better off saving up for a new laptop.