Stylized Foliage - Is there way to control the emission based on world lighting conditions

I have made a stylized tree with some emission for stylized look.

But in dark the trees glows due to the emissive color

I am wondering if there is a way to control the emission based on lighting.

I know one way is to use material parameter and update it based on day & night cycle. But this will not work always. What if there is a tree in very dark place during daytime or a tree in well illuminated place during nighttime.

Is there any way to dynamically do this in materials. Pls someone help me with this!

Then you need to figure out a way to get the result you are after using a non-emissive material, materials in deferred shading have no information about the lights affecting them.