Determining the quantum numbers of excited heavy mesons