Get road distribution from route

Hello,

I was wondering if it is possible to see the distribution of different roads on a route from A to B.
Let me explain…

I travel from Barcelona, Spain to Hamburg, Germany.
I would like to see a break down of different road types and how many kilometers I’ve traveled on each.

ex. Motorway - 1200 km
Primary - 500 km
Tertiery - 120 km

Is there any way to do this? How complicated would it be?

Preferably I would want the route with several way-points, a A - B - C - D - E - F route, but this as I understand is not possible or very complicated?