the wealth gets redistributed to the labour that initially created that wealth. but socialism doesn't work unless it's global , it can't be confined to a single state as efficiently.
incidentally, it's quite odd watching people drool lovingly over capitalism, a system that works to keep the majority of the world's wealth in the hands of a few. it's really deranged.