You can connect Apple AirPods to a Windows PC using Bluetooth, like any other Bluetooth headset.
Before pairing, make sure the AirPods are removed from other devices, otherwise they may automatically reconnect to them instead.
Make sure Bluetooth is enabled on your PC:
Go to Settings > Bluetooth & devices
Turn Bluetooth on
Select Add device > Bluetooth
Put your AirPods in pairing mode.
Select your AirPods from the list and complete the pairing.