Most of the non-USA citizens in federal prisons have committed a felony that is specifically related to immigration.
Since immigration crimes are not prosecuted at the state or local level, that means that 100% of immigration criminals are imprisoned at the federal level.
If you want to know how many prisoners broke any kind of law, including sneaking across the border, then youd find the Bureau of Prisons number more useful.