A Portsmouth-based Royal Navy ship has found vital evidence which will be used in an inquiry into how a New Zealand survey vessel ran aground and sank.