As has been said could be power supply fluctuation, also - Is the loud noise fan noise? Overheating of the CPU/GPU (may be combined on same chip) can also cause shutdowns. A temp mointoring program may show this up.
Also worth downloading CCleaner from Piriform (free) and run the cleaner and the registry cleaner bits.