It's not possible to set/alter ringtone settings via the published iOS SDK (there are most likely "private" methods, but using these will result in your app being rejected), as otherwise any errant application could trivially make irritating changes.
i.e.: Only the user can change the ringtone settings.