To get into the BIOS on a HP as it boots hit F1. Are you hearing any beeps as it boots?
If the system has been getting that hot may have already damaged the CPU. Pull the heat sink and fan clean the dust from them. If you have a local computer repair shop close go there and ask them for a little thermal compound. when you put it on if the top of the CPU has a small rectangle on it put about the size of one piece of rice. If it is flat and solid spread it even either with a credit card or razor blade. while doing this take the battery out it will reset the BIOS take out the video card and use the onboard video. unhook everything but the HDD plug in your 20\24 pin whichever you have and if it has the P4 4 pin plug it in. turn on the PC listen for beep codes, If no beeps then chances are you CPU got overheated shorted and took the motherboard down with it.