I have a requirement to check whose accounts are expired in Linux machine and send a mail to root

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux?

Which bits are we stuck with? Selecting expired users or the e-mail?

Robin
Liverpool/Blackburn
UK