I've never tried doing this, so it's somewhat dry-coded, but would not the following do for your needs?
Code:
if (arg2 == "SPELL_DISPEL") then
if bit.band(arg5, COMBATLOG_OBJECT_AFFILIATION_MINE) > 0 then
local DMName = GetSpellInfo(27277)
if (arg10 == DMName ) then
SpellName = arg13
if bit.band(arg8, COMBATLOG_OBJECT_REACTION_FRIENDLY) > 0 then -- dispelling buff off friendly target
UIErrorsFrame:AddMessage("["..SpellName.."]", 1, 1, 1); -- white
else
UIErrorsFrame:AddMessage("["..SpellName.."]", 1, 1, 0); -- yellow
end
end
end
end