We consider the problems of simultaneously identifying two unknowns. The wave propagation velocity and the memory of the layered medium will be determined. For their determination, two observations are used for how the boundary of the domain fluctuates. Main results are stability estimates and uniqueness theorems for the problems under consideration.