Sagi,
Take a look at System Configuration API in LabVIEW. It's basically like an API for MAX. There are also plenty of example program under Hardware Input and Output >> System Configuration that shows how to query what hardware is in your system. This API can give you slot information as well as device models and such. If you have the device aliases or names then you should be able to open up tasks to the modules.
Aaron