There's no predefined function for this, as far as I know.
It's wrong to speak of the key associated with a given value. There can be more than one key with the same value.
I use these functions (defined in apu.el):
(defun apu-get-hash-keys (value hash-table &optional value-test-function)
"Return a list of keys associated with VALUE in HASH-...