I wanna no how to communicate with external drives with code.

I am building an app, where one of the feature of app is to detect weather an external hard drive is connected or not through an USB cable to the iPhone.

I wanna no how to communicate with external drives with code

I wanna no how to communicate with external drives with code.
 
 
Q