First place to check would be Power Options in Control Panel. Look for anything shutting the comp down after a time.
Then check if it is overheating. Take out any drives to improve ventilation.
The Event Viewer may hold a clue to what is happening.
If this is a new laptop, raise the issue with the supplier/manufacturer.