Yes just like you suggest:-
plaintext ⊕ ciphertext = key
but I would question why you'd want to do this? If you have the plaintext, then your attack was successful. You know what the message says. There is no point obtaining the key. A properly organised OTP operation will only use those key bits once for the message you have. They might even then be destroyed /deleted. They should never be needed again so there is no point in having them in the first place. The sender's next message will draw upon new key material. Confused emoji.
Unless, you suspect that the key material is being generated via an algorithm /pseudo random number generator. There are certain people out there who believe that they have discovered an improvement to the venerable OPT. This site has several questions concerning the veracity of clever techniques to avoid using a true random number generator. If you suspect that your sender is one of these confused people, yes there would be value in obtaining the key material in order to attack the generating algorithm. OTP - Reuse key BUT add IV and Hash functions to generate one time pad are good(?) examples of OTP v2 attempts.