Unfortunately availability of Light Path node in Eevee is quite limited. However you can use a trick with Shader to RGB node in material to get the effect you want (You can change color of diffuse shader/shadow):
Color ramps and other masking elements may change depending on your scene and setup.
Check this video: