Get TRIAC "signal" into a MCU
It sure is possible, you just have to measure how long the live output of the dimmer stays “close to” 0V.

But you should be very careful when working with mains.

And it still looks the wrong way to do anything. You should probably better disassemble the dimmer to reuse the pot it contains.