You cannot, because Sonic Battle was a single-player Game Boy Advance title and no official online version was ever released.
If you want to play it today, the realistic options are the original cartridge, a legitimate re-release if one becomes available, or the many other Sonic games that do offer online play.