I'd suggest first identifying if this is hardware or software(e.g. Windows drivers/kernel space). Get a Linux live CD and run your machine using that, see if you get shutdowns. If you do then you can start checking/swapping out hardware to see what's failing - RAM, PSU, graphics card, etc.