Spontaneous reboots tend to have one of two causes.
1: Heat
2: Power
Given we're dealing with an OEM computer, either one of those could be the issue. So the first thing I would recommend you do, is open up the computer and use a can of compressed air to blow out the vents and fans.
If that doesn't do it, then odds are your power supply is underpowered for what you're trying to do, and you'll have to replace it with a "bigger" PSU in its capacity.