You can do it between XP and 98, but its not half as easy as if both were on XP

On XP you go to My computer/My Network places/Setup a home or small office network. That is pretty straight forward just answering the questions it asked.
I cant help with the 98 side of things though, been years since I used it!