How to export bit length?

I have a huge collection of m4a and flac files and I use the software to generate album lists.

To identify which of them are HD tracks I would like to export both bit length and sample rate. for sample rate I have found a variable but not to know if this is on 16 or 24 bits?

Anybody knows how to do that?