Neural Network Classification Probelm
I think the 2-layer neural network can be used to classify two or more class problem. It does not depend on the number of nodes of each layer. The problem you want to solve (i.e., the dataset you work on) decides how many classes you have.
For more, see here, here, here or here.