In principle, you can determine (or look up) the unique emission lines for each element. But the actual wavelengths you observe will depend on a lot of things, including the temperature of the flame. Moreover, it's also hard to guess ahead of time how various lines will add up and translate into a single observed color - which isn't always easily determined from a set of light wavelengths. You might be able to use a color chart to help you do it, but... why? The flame test behavior of just about every metal is already known. Why not just look it up?