This script will list all collections a machine is a member of, script should be called like " .\script.ps1 -smartname HOSTNAME"
Hostname should be the computers AD object name.
You will need to change the following values:
$SiteCode = "XXX"
$SiteServer = "prodservername"