Check what the CPU already offers
Hyper-V needs VT-x or AMD-V enabled in the firmware. The second property tells you whether a hypervisor is already active, which matters because sandbox and WSL2 share it.
Get-ComputerInfo -Property HyperVRequirementVirtualizationFirmwareEnabled, HyperVisorPresent