$result = Get-NetAdapterBinding -Name "Wi-Fi" -ComponentID "ms_tcpip6"
$result.Enabled

This should be fine for what you requested.