Windows PCs have an inbuilt monitoring console to show you what programs and processes are running, consuming most resources. It is highly probable that something HP installed or something you downloaded and installed is causing an issue.
You need to locate the problems and fix them one by one, really.
Windows PCs have always been notorious for getting clogged up and becoming unresponsive due to viruses (that run processes consuming resources) and crapware (trash and unwanted software) that comes along with internet downloads (sometimes without the user knowing), or through bloatware (poorly coded software that slows your PC down) installed onto machines by vendors such as HP.
If you're new to it, it'll take a bit of researching to understand how to do it without breaking stuff, but 100% worthwhile to get the machine back to a very useable state.
How to do it:
If you're experiencing issues with your computer, one of the first places you can look to for help is the Windows Task Manager. The Task Manager can show you what processes are currently running on your computer, as well as how much CPU and memory each process is using. This can be helpful in identifying which processes are causing problems.
To open the Task Manager, press the Ctrl+Shift+Esc keys on your keyboard. Alternatively, you can right-click on the taskbar and select "Task Manager" from the menu.
Once the Task Manager is open, click on the "Processes" tab. Here you'll see a list of all the processes currently running on your computer. Take a look at the "CPU" and "Memory" columns to see how much each process is using.
Use Google to research each process before you decide whether it should be stopped or not.
If you see a process that is using a lot of CPU or memory, or both, that could be the cause of your problem. Try ending the process and see if that fixes the issue. If it does, you may want to research that process further to see if it's something you need or if it's safe to remove (and how to remove it safely).
There are more things you can do but this is a good starting point.