I would say that beans and peanuts are called the same in Bahasa. Usually we have an adjective following "kacang" to distinguish what are we talking about.
Example: "Kacang panjang" is long beans. "Kacang goreng" is fried peanuts. "Kacang kedelai" is soy beans. "Kacang polong" is peas.