to start, what you need to do is to stop the PC automatically restarting. This way the PC will stick on a blue scrn and you should be able to get a stop code. Then post back here or do a google. This will help diagnose problem.
Have you added any hardware recently?
To stop auto reboot on XP
Control panel-System-System properties-advanced-start up and recovery
untick automaticall restart box