Check where shortcode called from

Hi,

Is there a way to check where a shortcode was called from?
For example was the shortcode called in a sidebar widget, footer widget, etc…

Or would I be better writing a an actual widget?

Cheers