Appium IOS Get All Device ID that connrct to MAC : need help

How do i call in my framework (In java) to “instruments -s devices” to Get all 
Device UDID that connect to the MAC and parse the result (UDID) to Array list ?

Thanks !