Thats one of those things thats really hard to figure out. Oftentimes it's an issue with your hardware or drivers. Could be anything from memory to video card to video drivers to simply a system that heated up too much.
The best clue is the message that is given at blue screen and the system information you get from windows when you come up again. It usually tells you what module failed and caused the reboot. Almost always its a driver.