Actually, you check the addon's Lua files and check for its AceDB creation call. Related lines in the two addons mentioned here are:
BT4 4.4.2 Bartender.lua Line 31:
Code:
self.db = LibStub("AceDB-3.0"):New("Bartender4DB", defaults)
As this is defined as a member method of a table (it uses colon syntax in the function definition at line 30), the "self" local is (simply put, it's a bit more complicated technically) the table itself. Line 30:
Code:
function Bartender4:OnInitialize()
This leaves us with "Bartender4.db" as the AceDB db handle (which has the :SetProfile method).
Same for SUF - ShadowedUnitFrames 3.4.4 - ShadowedUnitFrames.lua line 47:
Code:
self.db = LibStub:GetLibrary("AceDB-3.0"):New("ShadowedUFDB", self.defaults, true)
Function definition in line 27:
Code:
function ShadowUF:OnInitialize()
---------- Post added 2012-04-09 at 01:47 AM ----------
For reference, LibStub("AceDB-3.0") is equivalent to LibStub:GetLibrary("AceDB-3.0"), as LibStub has a metatable whose __call is equal to the GetLibrary method.