How to Retrieve All Sonos Speakers Programatically

Is there a way to retrieve all the Sonos speakers I have installed? Possibly return a “list” (filtered) and search for “media player type/brand”?

Thanks
Bob