Hi
Its very hard to know with pre-built machines like this whether they're possible to upgrade. From what I can find online about your system it should work technically. I'm seeing a 600W power supply with an option for either a GT 630 and a GTX 680. That's a huge disparity in tier of GPU, so I'm not 100% whether it actually has a 600W PSU as its a total waste for the GT 630, which was barely better than integrated graphics even at the time.
So basically, you'll have to open the machine up, and have a look. Does it have PCI-E power connectors spare in there somewhere? A GTX 3050 would need one.
like these:
Does the PSU (Power supply) have a label on the side of it, like this?
and can you upload a pic of it to here via Imgur or another picture hosting site.
You'd also need to check if the new GPU will physically fit in the case. You'll have to do some measuring and check against the height and length of any card you might buy.
Two other problems you should be aware of. The PSU in this machine will be very old, and likely to pop at some point, who knows when. When it does it may damage any new graphics card you put in there on its way out.
Secondly, the CPU in that machine is also 10 years old. It wont be too long before it wont be able to play new AAA games at all.
My suggestion would be to save up and build a new system entirely if possible, if not then just know there are risks and the benefit of the GPU will be limited by the CPU, more or less depending on the game.