Now that I think about it...
There was a copy of the stuff the Brimhats had in mind in the Tower of Books, but it was destroyed magically
The how isn't important, it's that someone found it and identified it before Qifrey did
Who did it, and how is it that Qifrey is still free to act as a witch...