Can someone tell me how to retrieve info of (Series 40)devices programmatically?

And what are the information available for developers? Specially I want to retrieve ....

Devices screen sizes
Input type (Whether Touch/Type or Touch and type)
and Whether the phone is slide or not .....

Thank you