1. Penalty would be imposed only if the court holds your friend guilty. The quantum of penalty depends on the sections leveled against him.
2. Your friend has to apply to the court to release his vehicle on the ground that it is not required for the purposes of investigation.
3. Engage a lawyer and proceed according to his advice.