Get sidebar ID to check if empty

Hi guys,
I’ve been trying to find a method to check if a “content aware sidebar” is empty or not (if there are widgets inside).
There are some WordPress functions that check that, like: is_active_sidebar()

The problem is that we need sidebar ID as argument for these functions.
Is there a way to get those ids (i.e: ca-sidebar-257836) using the custom “name” you assign to them???
If not, any custom function to check it they are empty?