According to your requirement, there are two steps
1. Get the channel names
Use DAQmx Device Node to get the physical channels. It is located under DAQmx->Advanced->System Setup
2. Add them to the tree control
Refer to the example Tree Enhancements.vi, just enter tree in example finder, you will find it