Get the next alarm on your phone.
Check %an_package to see if the alarm was set by the app you expect it to (ie. the clock app in most cases)
You can set %an_time to a global variable like %AlarmTime and use that as a variable in a Time context of a profile.
Example here.