If you have powercli installed run
Get-VirtualSwitch | Select-Object NumPortsAvailable
This will run against all vSS's on that host, if you wanted to run it against a all vSS's on a vCenter then that could easily be done with a foreach loop.
Best of luck in your studies!