Report question

Question: is there a way to eject all external hard drives from the command line? (OS X)