Greetings,
Welcome to the forum.
I am not a HP employee.
Five beeps at POST seems to indicate the MB is receiving power.
I can only guess, but it could be a problem with the onboard graphics chip, the power supply, or the integrated monitor.
Your PC is about 8 years old (Link to PC specs). Components fail as they age.
Regards