My tray application (only available for Windows and Linux) has already implemented that. In fact, you can configure exactly which notifications you would like to get. It also tries to reduce the number of notifications (eg. no disconnect notification after standby).
I assume this happens automatically when one uses the regular OSX APIs?