all you really need to be able to hack this in (i think, it would depend on animations resetting, like the class animation does whenever you open your inventory window) via the same animation-style timers that have been done, would be do get access to the name of the buff and/or buff text and be able to lookup based on it.
this was my most recent fesability query, would love to see how much of a given buff was left, but unless they give us access to change the spell name label/animation, or the table for buff->icon, i've come to the conclusion that it can't be hacked in with our current access.
edit: ok, i lied, the inventory window class animation doesn't reset when closed, i just timed it badly. that would be the other barrier