You don't even need to do that. You can measure ambient light with the LED, using it as a photodiode
The sane one that's on? Is that light constant or blinking?