Is it possible to get a list of all mailboxes (email addresses) with data on the archive server?

Is it possible to get a list of all mailboxes (email addresses) with data on the archive server?

I just need to extract the list of mailboxes with their email addresses and size of data for them