Differentiate 01 and 10 in digital logic
The function you are describing has a name -- it's called a 2-to-4 line decoder, and the image below shows how it's typically implemented. There isn't any way of implementing this function in fewer standard gates.



(Image borrowed from Wikipedia -- Decoder Example.svg)