If it were the hard drive then I'd expect failure to be immediate and terminal. No disk found and really I have actually looked says the BIOS. Or random and final during usage when the computers trips over a bad sector. Perspiration doesn't usually get a bad disk up and running.
From your description it sounds more like a failure to boot which suggests something indigestible during start-up. It's worth trying a boot into safe mode, that'll disable much of the baggage, and at least determine where the problem lies. Fixing it thereafter is iterative (finding the errant piece of software) or nuclear (reinstall Windows). Of course, if this happened recently, try a prior restore point.
That's not to say it isn't hardware, but in my experience hardware failures are usually terminal machine no beep. Then again the narcolepsy seems odd. Computers shut down spontaneous because they have crashed hard which I suppose could be hard disk related. Or bad software. Or overheating.
You can spend a million years diagnosing computer issues like this and never reach a conclusion. If no easy fix is apparent*, I'd back up personal files and restore Windows from the partition. It's a pain but probably less pain.
*
1. Try Safe Mode
2. Run a hard disk check
3. Restore from a known good restore point
Google your version of Windows and the above to find out the precise details.