With a little cleanup of the output, this will give you the SSID.

netsh wlan profiles interface="Wireless Network Connection"

May still be a better way.