spontaneous reboot can have many causes... heat, power, virus, spyware, new
installed software, newly installed driver
Take the cover off your PC, watch the heatsink fan, is it running? does it
slow down? does it make a strange noise? If so you may need to replace the
heatsink fan
If your power supply is failing it will not give a steady level of power to
your PC, does the power supply make a strange noise. is the fan running.
beyond that you will need a multi-meter to check the output.
check for virus, or spyware
did you install anything new just before the problem started?
Do a goggle of your problem:
xp spontaneous reboot
Good Luck