How to find the connected device to appium server is ios or android Before launching driver

I am running my test in aws there i have to find which device connected in appium server or which test, based on that i will launch my iosdriver or appium server.