I do make heavy use of color coded groups (see Script: Colorize DEVONthink Icons), but I don’t color code the built in groups (although the script can be used to do that).
What exactly do you want to achieve?
Not sure whether it’s useful but this script gets the names of some of the groups.
-- Get names of built-in groups
tell application id "DNtp"
try
set theGroups to {annotations group, incoming group, tags group, trash group} of current database
set theNames to {}
repeat with thisGroup in theGroups
set end of theNames to name of thisGroup
end repeat
return theNames
on error error_message number error_number
if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
return
end try
end tell