Toward the determination of heavy-quark transport coefficients in quark-gluon plasma