A very silly question but I will respond from my usual from my usual standpoint.
Probes could be entered in the brain that measure the concentration of dopamine being secreted. The more dopamine, the more pleasure. I'm sure scientists will have done this previously, possibly on animals.