Adaptive identification of coherent states