WordPress plugin development – get all active widgets

Solution:

get_option('sidebars_widgets') gives you an associative array that contains a list of widgets for each sidebar plus a list of all inactive widgets.

get_option('widget_widgetname') will give you an associative array that contains the settings of all instances of your widget.