Sorry - missed your post - was posting at the same time.
The center of gravity, for all practical purposes, is the same as the center of mass.
The center of mass can be defined as follows :
"That point in a body about which the sum of the mass moments of all the individual masses constituting the body is zero".
So if there are j individual point masses denoted by m(j), and the vector position from an arbitrary origin be denoted r(j), the center of mass is located r from the origin, where :
r* Sum(m(j)) = Sum(m(j)*r(j))
So in the most general case, you would have to find it using calculus or numerical methods. However, if you have a body composed of masses with simple individual shapes having known centers of mass, you can find it quite simply.