You can use ConnectionProfile
in Windows.Networking.Connectivity
.
IsWlanConnectionProfile
Gets a value that indicates if connection profile is a WLAN (WiFi) connection. This determines whether or not WlanConnectionProfileDetails is null.
IsWwanConnectionProfile
Gets a value that indicates if connection profile is a WWAN (mobile) connection. This determines whether or not WwanConnectionProfileDetails is null.
FYI: https://learn.microsoft.com/en-us/uwp/api/windows.networking.connectivity.connectionprofile?view=winrt-18362
Thanks.