My husband will be away for shabbos and my son (age 12) wants to invite his friend also 12 to come for shabbos. Besides for me, my son and his friend there will also be my daughters 10 and 7 at home. Would this be considered Yichud?
There is no problem of yichud here. Your son is a shomer in this case, and there is no cause for concern.
For more details please see here.