Borax is used in the Schotten-Baumann reaction to identify anthraquinone glycosides because it reacts with the anthraquinone to form a precipitate. This reaction is specific for anthraquinone glycosides and does not occur with other types of glycosides.