Use this code in Javascript:
APP.conference.listMembers()
If no members are present, this will simply be an empty list:
> APP.conference.listMembers() []
But if there is another participant, it will show some info:
> APP.conference.listMembers() [ci] 0: ci {_jid: '[email protected]/b009ae10', _id: 'b009ae10', _conference: nd, _displayName: 'Foo', _supportsDTMF: false, …} length: 1