You can obtain db measurement reading the mix buffer content thru a DSP callback. There are values in the smallint range (-32768 <> 32767) that you can convert to db values (-120dbFS <> 0dbFS).
The only thing to check is the soundcard DC offset, that shifts you measurement a little above or below it’s center, but if you don’t need a super-accurate level display it can be just an issue.