PKHeX detects RB vs Y by checking the event var for "Starter Received", since there isn't really much else different between versions. If you received nothing, it's RBY, if you received Pikachu, Y, and otherwise RB.
I can probably change the logic a bit to force Yellow/etc