How can we determine which objects are available on users machine ?

I'm adding functionality to email of fax the reports generated by the app.

When outlook isn't installed on the machine i would set the button disabled.
The same for the fax server.

How can i check if these classes are installed on the machine ?

Now I am creating the objects when the button is clicked.
This will throw an error when the component isn't available.

Someone.