The example on the front page includes this line:
int default_out_device_index = soundio_default_output_device_index(soundio);
Is that what you're looking for? Or something else?