​Export UPN of all users with an archive:

Get-Mailbox -Archive | Select-Object UserPrincipalName | Export-Csv -Path C:\Temp\UPNUSERLIST.csv