Programmatically retrieve the sidebar/s classes

If you take a look at register_sidebar() source it just stores data in $wp_registered_sidebars global variable.

You could examine it and retrieve data from it as you need to.

tech