Detect new source when plugged in

I want to detect new source when it's plugged in or turned on. For example: My application is running but no scanners are detected. Then I plug in the scanner in I want to detect this event and show avaliable sources. Is there some kind of event in your library
for detecting new twain sources?