CLI - get info about account/folder share

Is there any way to get info about account/folder share through CLI? I would like to find all shared accounts in domain.