Fetch Device Information Programmatically When On Selenium Grid

Hi,

I have a set up running multiple appium servers registered on grid. Now considering that there are multiple devices of different configurations, it is very crucial to know on which device script was executed. Is there any way I can fetch this info in my script ?