How to check if EEVEE or cycles is used?
You can enable Material Output for a specific render engine. This will allow you to create a single material with one material output for Eevee and one for Cycles.