Determine default context store

I wonder how to determine the value of default context store? Is there an api call? A specific node I'm developing should warn the user, if default store is memory instead of localfilesystem.