How to determine what capabilities are available?

If I understand the following post correctly, that is not possible. I have not seen the API which would allow to do what you are looking for.