There is a property node for getting all devices in Sytem. (property node class: DAQmx>>DAQmxSystem).
Then you can get device Type, ID, ... of each device with a property node (property node class: DAQmx>>DAQmxDevice).
There is a VI to reset a specific device (DAQmx>>DeviceConfiguration>>DAQmx reset).
There is no DAQmx function call to explicitly run a self-test as Measurement & Automation Explorer does. However, the DAQmx functions will return an error code if the device is not working properly.
Peter Griese
NI