The relative strengths of Rashba and Dresselhaus terms describing the spin-orbit coupling in semiconductor quantum well (QW) structures are extracted from photocurrent measurements on n-type InAs QWs containing a two-dimensional electron gas (2DEG). This novel technique makes use of the angular distribution of the spin-galvanic effect at certain directions of spin orientation in the plane of a QW. The ratio of the relevant Rashba and Dresselhaus coefficients can be deduced directly from experiment and does not relay on theoretically obtained quantities. Thus our experiments open a new way to determine the different contributions to spin-orbit coupling.