That looks to be a system from about 2010 correct? Maybe be a motherboard issue, overheating, RAM issue, drive maybe. Check temps using HWMonitor, open it and clean out all the fans and vents, clean off the old thermal paste from heatsink, apply new paste. If it still shuts off can try another RAM stick, maybe a clean Windows setup on a new drive. Really depends on how much time and part cost you want to do before just replacing it with a new one or used working one.