I would use "at" in any case where you refer to a place/name, while using "of" when you refer to a subject/field of study. I am guessing UBC is an institution, like a university. Hence: You are a student at UBC.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.