Detecting Gaussian entanglement via extractable work