Blue screen/Computer shuts down is almost always a hardware malfunction or a driver problem.
Make sure your video driver is up to date.
If it is, then the next suspect, in my mind, is overheating, make sure all of the fans in your CPU case are working properly.
What is the error message in the bluescreen? It should give you (or maybe us) a vague idea of what went wrong.