Do the two following steps to make troubleshooting possible. The restarts can literally be anything (my worst nightmare was a PCI Sound card, took 6 months to isolate it).
1)There is an option in bios under power manageemnt. Wording will vary but basically it says something like "restrat after a power failure" Disable that. Now if it was the power crapping out the system will go down and stay down.
and from windows help:
The next will let you see the blue screen of death. Post what it says in here for more help. Uncheck the Automatic restart options.
2). To specify what Windows does if the system stops unexpectedly:
You must be logged on as an administrator or a member of the Administrators group in order to complete this procedure. If your computer is connected to a network, network policy settings may also prevent you from completing this procedure.
Open System in Control Panel.
On the Advanced tab, under Startup and Recovery, click Settings.
Under System Failure, select the check boxes that correspond to the actions you want Windows to perform if a Stop error occurs:
Write an event to the system log specifies that event information will be recorded in the system log.
Send an administrative alert specifies that your system administrator will be notified.
Automatically reboot specifies that Windows will automatically restart your computer.
Under Write Debugging Information, choose the type of information you want Windows to record when the system stops unexpectedly:
Small Memory Dump records the smallest amount of information that will help identify the problem. This option requires a paging file of at least 2 MB on the boot volume of your computer and specifies that Windows will create a new file each time the system stops unexpectedly. A history of these files is stored in the directory listed under Small Dump Directory.
Kernel Memory Dump records only kernel memory, which speeds up the process of recording information in a log when the system stops unexpectedly. Depending on the amount of RAM in your computer, you must have 50 MB to 800 MB available for the paging file on the boot volume. The file is stored in the directory listed under Dump File.
Complete Memory Dump records the entire contents of system memory when the system stops unexpectedly. If you choose this option you must have a paging file on the boot volume large enough to hold all of the physical RAM plus one megabyte (MB). The file is stored in the directory listed under Dump File.
Notes
To open System, click Start, click Control Panel, and then double-click System.
You must have at least a 2-MB paging file on the computer's boot volume if you select Write an event to the system log or Send an administrative alert.
If you choose either Kernel Memory Dump or Complete Memory Dump and select the Overwrite any existing file check box, Windows always writes to the same file name. To save individual dump files, clear the Overwrite any existing file check box and change the file name after each Stop error.
You can save some memory if you clear the Write an event to the system log and Send an administrative alert check boxes. The memory saved depends on the computer, but typically about 60 KB to 70 KB are required by these features.