As far as I know, there's nothing in the OM that tells you whether an image has an alpha channel (ie, a transparent PNG) or not.
You'd need to get access to the image itself and work out a way of examining it, for example using FreeImage.
Not a simple task.