The UUID of the computer is autmatically stored in the item when the block is broken. That UUID should be retrieved when placing the computer again
And all the data associated with the computer should be deleted when the item is destroyed (if it's possible). Maybe put a grace period on the deletion in case someone accidentally destroyed a computer, but wants to backup their data.