Hi Biteme12,
Welcome to the forums, to answer your question... There is currently no way to tell which units come from which barracks unless they are wounded in some way and then you can track the one that is wounded. Other than that I don't know of any way to check which unit is from which barracks.
Sorry,
~Ninga78234