Do this so that your computer will not restart on an error and you can write down the stop code error you get.
1/ Click Start button
2/ From Start menu Click Control panel
3/ In Control Panel Click the System icon
4/ In the System Window look on the Left hand side of the window and you will see a list of options. Click on the Advanced System Settings option
5/ Because Computer management requires administrative privileges you may find the the User Account Control will pop up. If it does then enter the required information (if you are not the administrator) or, if you are the administrator, click the Continue button
6/ In the Advanced Settings window look for the Startup and Recovery section and then Click the Settings button
7/ In the Startup and recovery window look for the section marked System failure and remove the 'tick' mark from the 'Automatically Restart' option. Now press OK button
8/ Finally click the OK button on the System properties Window and then close the system window.
Decoding STOP Errors How to troubleshoot specific STOP Errors
Always a good idea to run memtest on your ram for that is a common cause of the BSOD
Memtest86+ - Advanced Memory Diagnostic Tool
Write down the error code and repost it here.