Finding Inertia matrix

In modeling dynamics of a robot ,in which servo motor is adjusted inside the link, there is a need to find inertia tensor of the motor itself,Right?

So if it is needed how can i get the inertia tensor of motor since i couldn’t find its solid works model having internal components,i mean gears and other stuff(with related specified materials)?