The Harmonized System Nomenclature (HSN) code for buffalo milk is 0401. This code is used for all unprocessed milk, including cow and buffalo milk, and helps in categorizing the product for trade and taxation purposes globally.