Actually, and I don't know why this didnt occur before, but yeah, blobrana is right about not strictly needing 3D maths :-D
Since you have only 3 points, the two stars and your point of reference, any 3 distinct points always lie in a plane, reducing the problem to a 2D one.
If you know their distances from you, and the direct angle subtended between them (from your position), you can calculate the distance between them using basic triangle geometry (you know 2 lengths and the angle between them, calculating the third length should be trivial).