Below powershell helps to get list of mail enabled public folder in the exchange 2007 Organization and it exports the details in the CSV formated files
Get-MailPublicFolder |select primarysmtpaddress, email address, identity | export-csv MailenabledPF.csv
Regards,
Krishna