Some thoughts I've had:
This is similar to wanting to do a two-sample t-test - except that for the second sample I only have a single value, and the 30 values aren't necessarily normally distributed.
Correct. The idea is a bit like a t-test with a single value. Since the distribution is not known, and normality with only 30 data points may be a bit hard to swallow, this calls for some kind of non-parametric test.
If instead of 30 measurement I had 10000 measurement, the rank of the single measurement could provide some useful information.
Even with 30 measurements the rank can be informative.
As @whuber has pointed out, you want some kind of prediction interval. For the non-parametric case, what you are asking, essentially, is the following: what is the probability that a given data point would have by chance the rank we observe for your 31st measurement?
This can be addressed through a simple permutation test. Here's an example with 15 values and a novel (16th observation) that is actually larger than any of the previous:
932
915
865
998
521
462
688
1228
746
433
662
404
301
473
647
new value: 1374
We perform N permutations, where the order of the elements in the list is shuffled, then ask the question: what is the rank for the value of the first element in the (shuffled) list?
Performing N=1,000 permutations gives us 608 cases in which the rank of the first element in the list is equal or better to the rank of the new value (actually equal, since the new value is the best one). Running the simulation again for 1,000 permutations, we get 658 such cases, then 663...
If we perform N=1,000,000 permutations, we obtain 62825 cases in which the rank of the first element in the list is equal or better to the rank of the new value (further simulations give 62871 cases, then 62840...). If the take the ratio between cases in which the condition is satisfied and total number of permutations, we get numbers like 0.062825, 0.062871, 0.06284...
You can see these values converge towards 1/16=0.0625 (6.25%), which as @whuber notes, is the probability that a given value (out of 16) drawn at random has the best possible rank among them.
For a new dataset, where the new value is the second best value (i.e. rank 2):
6423
8552
6341
6410
6589
6134
6500
6746
8176
6264
6365
5930
6331
6012
5594
new value: 8202
we get (for N=1,000,000 permutations): 125235, 124883... favorable cases which, again, approximates the probability that a given value (out of 16) drawn at random has the second best possible rank among them: 2/16=0.125 (12.5%).