Computers can restart for any number of reasons, from software instability, bad installations, faulty memory, overheating, etc.
Right click on "My Computer" and choose "Properties". Then go to the "Advanced" tab and select the "Settings" button from underneath "Startup and Recovery".
Under...