Right-click on My Computer, click Properties, click the Advanced tab. Under Startup & Recovery click Settings. Under System Failure untick the box in front of Automatically restart.
The next time it crashes you will be able to read the error message. Please post it here, preferably in full including the error codes, not just the words.