I would like my java application to be notified when a cd or a floppy is inserted or modified, can i know how can i code it or can i have some resources on it?

thanks~