The below is a little example of how to list all mailbox in Office 365 that have an Out of Office or an auto reply set.

Connecting to Office 365

Option 1 : List just the identities that have an Out of Office / Auto Reply Set

Option 2 : Getting the full details including the message and start and end times