Definitely possible. You can make a post process material, that would calculate brightness of each pixel using any formula of your choice.
Then it is about taking a screenshot and averaging all the pixels. Practical benefits of such measurements are frankly questionable though