Hi,
To get most of the details of switches, Lansweeper scans them with SNMP. It could be possible to connect to them with SSH, but it will provide fewer details. You can find a full description on how to scan the devices with SNMP in the article below:
https://www.lansweeper.com/knowledgebase/how-to-scan-a-network-device/