First Minister John Swinney raised the prospect of Scottish troops being part of a peacekeeping force.