The best is to contact HP customer service and order a restore disc. That has all you need.

Installing a retail version of Windows 10 is a first step. After that, you'll have to install drivers and software from hp.com. It's much more work and more expensive moreover.