The LightStone mechanic allows you to get the current light level for a block. Right click any block while holding GlowStone Dust to see the light level.

If the light level is high enough that monsters won’t spawn, the bar is shown as green. If they are able to spawn at the clicked location, it will be shown as red.