Extracting Terrain Shadow of an Entity

I want to extract one entity’s shadow on the terrain. Is there any possibility to have access to shadows points of an entity in a specific time? I would be really thankful if sb could help.

Thanks!