On a clean LDraw matrix (no skew etc) this isn't to hard. Just extract the (3x3) rotation (last 9 numbers in type 1 line) and calculate the length for all it's axis'.
Their might be more complicated fancy ways of doing it, but I think this should suit your needs.
Their might be more complicated fancy ways of doing it, but I think this should suit your needs.