In the Matlab package, this is achieved with recording.continuous.keys(), and then the functions are called with the datastream name.
With the new headstages having an IMU datastream per port and a Memory Usage besides the usual Rhythm Data, I think it will be necessary to filter out the datastream by name instead of index.