<PackageReference Include="Microsoft.Identity.Client" Version="4.83.1" />

Microsoft.Identity.Client.PlatformsCommon.Shared.Win32VersionApi

static class Win32VersionApi
Windows OS Version checks
public static bool IsWamSupportedOs()

Checks if the OS supports WAM (Web Account Manager) WAM Supported OS's are Windows 10 and above for Client, Windows 2019 and above for Server