GNSS L1 and L5 band differentiation

You can see here on how to get nmea frame with sample in MBPL

BTW, to distinguish L1 and L5, you can check NMEA frame $GPGSV on the " System and signal IDs"