In general, I would say, have the server associate IDs to objects (with auto-increment for example), so you can map IDs to nodes. But I don't know yet if Godot has something already built-in. Maybe the upcoming network update will have something like that?