If you are travelling by train, you can either walk around the Palace through the Wilderness gardens, or walk through the front door/drawbridge and into Base Court, then straight through the Palace into the East Front Gardens.
If travelling by car, you will be directed to the entrance from the car park that takes you straight into the East Front Gardens.