wifi.name
The wifi.name property gets the current connected wireless network SSID, or nil if the computer is not connected.
Example
--! luart-extensions
import wifi
local ssid = wifi.name
if not ssid then
print("You are not connected to a wireless network")
else
print("You are connected to the wireless network '"..ssid.."'")
end