The machine comes with a win7 Pro license. It is on the sticker on the box. Download the iso, and burn a disk or thumb drive.
After installing, if you want, you can upgrade to win10 for free. Yeah, I know officially that offer was over a long time ago. But it works just fine, fully activated and everything.