the only way is by using something like enfuse, or openexr, and/or tonemapping. the question is incomplete: use the dr for what? for displaying on the screen? for printing? for storing? etc. a jpeg, straight from the raw (without blending or tonemapping) will _not_ contain the whole dinamic range, regardless what iso you shoot at, or how well you exposed (hint: 8bits is still 8 bits, and definitely not 14).
it is possible that the k-5 jpeg engine does some tricks internally to extract and "compress" some more of the dr into the jpeg, but i haven't yet tested that thoroughly (it was just a first impression).
the dr just is, btw. it cannot be in the shadows or in the highlights. the fact that the meter of the camera is biased to overexpose is arbitrary. the dr is wherever you put it.
so no, it's not as easy as "it's just there". i posted a thread about this more than a month ago, btw
(raw processing needs to change, perhaps, in concept, method, and gui)