in control panel go to system > advanced > startup and recovery settings, and make sure that automatically restart is not ticked, it could be that there is a driver causing the system to BSOD, and the system isn't actually just restarting but is in fact just crashing (then windows XP is restarting itself to hide the error message, because M$ claimed that windows XP never crashes and has no BSOD...)