After you replace the drive, you can use the HP cloud recovery tool to create a bootable USB recovery drive that will reinstall W10, the drivers and the software that originally came with your notebook.
You will need to have access to another Windows PC running W7 64 bit or newer to use the cloud recovery tool, and a 32 GB USB flash drive.
Here is an info link for how to use that utility...
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".