Do you know how to get into your BIOS (the built in program on the board that tells the computer how to start and load the OS, what the memory and other devices installed are and warns you of errors with those beeps)?
This is where you need information on your computer...the operating system is not involved here, it loads after BIOS determines the computer is okay to start loading the OS and other things from the hard drive.
Hitting F2 when you turn on the computer should open the BIOS, try hitting it repeatedly and rapidly a few times, if you are set for a fast boot (no info shown before the Windows XP logo comes on the screen, shut down and try again umtil you do get in.
This is the HP page to find manuals for your computer: http://h20565.www2.hp.com/portal/site/hpsc/public/psi/manualsResults?sp4ts.oid=342066&ac.admitted=1472345558768.1123376534.492883150
These manuals will be PDF files, save them to another computer and read them with a PDF reader (such as Adobe) or any word processer program that can display them.
You can also save them on a CD or DVD for reference.
It's not impossible to fix your own computer at all for many problems...some may be out of your league for now. If you have any questions while doing so the computer shop can tell you what to try or if you should bring it in. Sometimes you have to but often
you don't need to, you can do it yourself.
The manual that will probably help you best should be listed to in the right side column on page two of this manual download:
http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=342066&docLocale=en\_US&docId=emr\_na-c00067072
What you need to determine is the PATTERN of the beeps...it makes long and short beeps in some combination, so try to match that to the beep codes listing there.
Also, if you can open the case (left side) and check the connections WITH IT UNPLUGGED and see if some are loose or not attached like they should be, that is important.
But the beeping pattern is very important to determine the general source of the problem. Download all of the manuals and use them for reference.
As I said if it beeps the problem exists before Windows even starts. XP is not the problem itself, although it could be the hard drive itself, until you can decipher the beeps and move forward from there it's not relevant to make any guesses about that.
If the computer doesn't even give you video and just beeps, check the video connection and that the keyboard and mouse are correctly plugged in and working as well. A loose connection to the video connector on either the monitor of the back of the computer
may need to bet tightened or reconnected and with the old fashion VGA style you can do this while the computer is running without a problem.
If that doesn't solve anything and you have the pattern figured out to tell you what the general trouble is, that's what the next thing to tell us is.
Come back with the long and short pattern and what you see it could be and then it will give everyone reading a much better idea of what to suggest.