Hello,
Using TWAIN its not easy to do this consistently across all scanner drivers. You can check the capabilioty called: CAP_DEVICEONLINE but not all drivers implement it properly. Most drivers will generate a MsgBox when we call Enable on the driver and the scanneris off line but not all do.