i wish to code something during my publish template. So, can there be in whatever way to check on whether a widget that i wish to show is going to be proven in sidebar or otherwise ?
Take a look in the wordpress function is_active_widget
. It may be what you're searching for:
http://codex.wordpress.org/Function_Reference/is_active_widget