A recent problem I had and thought it was the hard drive was the cdrom that was going out. You can try disconnecting the cdrom if it's attached to the hard drive. Depending on the hard drive type you may need to change the jumper setting if there's no slave attached. Compaq uses cable select on a lot of the cdroms.
If you can get to the boot menu by pressing F8 select step by step conformation and choose yes to starting items one by one til the system hangs. Then try it by skipping that driver.
Try pressing caps or numlock to see if the lights on the keyboard turn off and on if they are the system isn't totally locked and something is going on in the backround.
Depending on where it stops responding, Anti-Virus software that may be what's stopping the boot process. If it scans from the Autoexec.bat file edit the file and put "rem" in front of the command lines that start the scan.
Disable the video driver will be like safe mode but with the other drivers loaded.
Boot to DOS change to the windows folder "cd windows". Edit the system.ini file from a DOS prompt.
Find and change the line that says
display.drv=pnpdrvr.drv to display.drv=vga.drv.
This will boot the system into 16 colors and will eliminate the possibility of video driver problems.
Here is a link to the parts reference manual for this PC. It has mother board diagram parts listing and the jumper settings for clearing the BIOS. I also noted that there is a jumper to allow the BIOS to be accessed. Also from this same place oyu should be able ot find other info on this and other HP/Compaq systems.
ftp://ftp.compaq.com/pub/supportinformation/consumerdocs/Consumer_QRG/presario4800.pdf