I'm not sure on the exact methods but I do know you can use a certain variety of Action Replay for the Gameboy Color, but it requires a old computer with a parallel port (the long pink connector) and some old software. Also I'm pretty sure the Gameboy Action Replay is pretty rare and expensive but I may be wrong.
Also it depends on the region of your Pokemon Yellow cartridge, for example if you've been playing on the American version of Yellow on an Emulator but own a European Cartridge of Yellow then I'm pretty sure you're out of luck.
There are videos on Youtube explaining how exactly.