Hi John,
There is not a native function to tell wither a camera is connected and (or) powered on; however, when the program tries to use the camera an error will be generated. By using the try/catch statements, you can handle the error, most likely -1074397153 "Cannot detect recognizable video source."
Regards,
Ryan M.
Applications Engineer