Allen Download hardware monitor and serif your CPU temps are ok. If the CPU or gpu is over heating it cause a system shutdown. So will a bad power supply. There are windows error log viewers see what windows is logging for errors. Bad hard drive would cause loss of data or the dreaded no boot device found error.