The following commands are equivalent and will return an email message with your membership settings on a mailing list:
query listname
confirm listname
When sent to the listname-request address, the command syntax is just the single command, as in:
query
confirm
To determine which mailing lists running on that server you are a member of, use the which command:
which