Check Power Option Properties:
control panel>Power Option>Power schemes Tab
-Turn off monitor :Never
-Turn off Hdd:Never
-System Standby:Never
-System hibernate:Never
if still the same
Try in to safe mode windows test let's it along times
1-if still restart mention to Mr.Allan about hardware
Thing to check:
* Fan CPU,RAM, Power supply
2-if no restart
Thing about Software(Virus,wrong driver,conflict software)
if any have advise, please also fill
thank.