The work done in each case can be calculated with the change in potential energy of the body:
The work done by the bird on the snake will use only the mass of the snake (in kg):
The work done by the bird to raise its own center of mass will use only the bird mass (in kg):