It is entirely possible that Cass told her, or that it's assumed that she knew (I mean, Steph's encounters with Babs were while she was still in the Clocktower with all her little bat-plushie toys hanging around). But I kind of like the idea of Steph having always associated Batgirl with Cass and no one else until now.