There isn't a command that would give you this information.
A sandbox usually contains a .jazz5 folder. So you could search your machine for the .jazz5 folder and all the parent folders of .jazz5 would be a sandbox.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.