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 ...