Detection of entanglement between collective spins