Using Yasumoto and Oishi's energy flux method, we evaluated the Goos-Hänchen (GH) and Imbert-Fedorov (IF) shifts of beam incident from the ordinary dielectric upon the topological insulator (TI) with totally internal reflection. Comparing with the case of two ordinary isotropic dielectrics, it is found that the topological parameter Θ of TI can affect two shifts. More important, IF shift appears even for a linear polarized TE or TM beam and achieves the maximum with elliptical polarization, which completely originates from the TI's intrinsic magnetoelectric coupling effect. This observation provides an optical experimental approach to determine the topological parameters Θ and provide a new way to control the GH shift and IF shift.