Questions about raytracing

Hi, I have a question about raytracing. I’m making a project and want to know if it’s possible to gather raytrace light data. My idea is to use refelctions as a part of the game, but I want to know if you could detect how much light is in the actual scene or perhaps in a singular designated area. I have no code written down yet, want to see if it’s possible before trying it.