[Addon develop] How to check rare/mob loot lockout?

Is there a way to see if the player already killed a rare/boss/etc and can’t have any loot from it, using the mob ID/name?
Also is it possible to know the time remaining until it can be looted again?
I’m looking everywhere and couldn’t find a way yet…

Thanks in advance!

HandyNotes + the xpac specific modules.