Over serial? Physical serial is rare. SOL would work, but since it is connection-based you can't poll it.
This seems like a simple and reliable method to me.