Learning quantum systems via out-of-time-order correlators