First of all, disable automatic restart. System properties (System Protection), Advanced tab, Startup and Recovery, press Settings... button, System failure, clear the checkbox "Automatically restart" and keep "Write an event to the system log". Then all you need is to look at the system log...