The stability of motion and handling, mobility and fuel consumption of an all-wheel drive automobile depend on how the engine power is distributed among the front and rear axles and then between the left and right wheels of each axle. This power distribution is dependent on the properties of the driveline system and its power-dividing units (PDU) located between the drive axles and between the wheels of each drive axle. This paper presents a generalized driveline model and a computer algorithm. This model provides a way to model the power distribution among the four drive wheels of the automobile when using any of the existent passive power dividing units: open differentials, locked units, limited slip differentials with different locker properties and other mechanisms. The computer computational algorithm allows transferring each PDU from one state to another as a function of i) changes in the driving conditions, ii) the properties of the power-dividing unit, iii) variations in the mass and geometry parameters of the vehicle, and iv) its other systems (tires, suspension, transmission and engine). Using this generalized model and the computational algorithm in a MATLAB/Simulink environment, a program package is developed to embed into a computer model (user interested in investigating the effect of various driveline types on the dynamics of an all-wheel drive automobile). The paper presents examples of utilization of the above program package in investigating the features of curvilinear motion of an all-wheel drive automobile.