On an M1 you can run the following:
ioreg -r -c AppleCLCD2 | grep -i nits
ioreg -l -f | grep nits
ioreg -r -c AppleBacklightDisplay
On an M1 you can run the following: