Well, if you have a flashcart and Pokemon ROM, then you can use Pokesav.
IF, IFFFFF, you didn't catch the Red Gyarados in HS, then you can use it to find your SID for the repsective game.
HOWEVER, if you did, then you'd have to send a Pokemon to somebody w/Pokesav/AR to find your SID.